<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="./resources/css/default.css" rel="stylesheet" type="text/css" />
        <link href="./resources/css/tableLayout.css" rel="stylesheet" type="text/css" />
       
        <title>:: HelpDesk Corporativo ::</title>
        
        <script language="JavaScript">
            function startProgressBar()
            {
                document.all.loading.style.visibility="visible";
            }
            function stopProgressBar()
            { 
                document.all.loading.style.visibility="hidden";
            }
        </script>
        
    </h:head>

    <h:body>
        <div id="loading" style="display:none"><p>Loading... Please wait!</p><img src="${pageContext.request.contextPath}/images/ajax-loader.gif" /></div>
        <table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-color: white">
            <tr>
                <td id="top" style="background: #FDFDFD">
                    <ui:insert name="top"><p:graphicImage value="images/helpdesklogo.jpg" width="150px"/></ui:insert>
                </td>
                <td align="right" style="background: #FDFDFD"><p:graphicImage value="images/Help_banner_difuminado.jpg"/></td>
            </tr>
            <tr style="background-image: url('images/bgslice_th.jpg')"><td align="center"><font color="#000000"><h:outputText value="#{currentDate}"><f:convertDateTime pattern="dd/MM/yyyy" type="date" /></h:outputText></font></td><td>&nbsp;<font color="#000000">
                        Bienvenido <h:outputText value="#{mBLogin.user}"/>
                    </font></td></tr>
            <tr><td style="background-image: url('images/bgslice_th.jpg')">&nbsp;</td>
                <td>
                    <h:form>
                    <h:panelGroup layout="block" styleClass="menu" style="background: #FDFDFD">
                    <ui:include src="menu_temporal.xhtml"/>
                    </h:panelGroup>
                    </h:form>
                </td>
            </tr>
            <tr>
                <td id="left" style="background-image: url('images/h_grad.jpg'); background-repeat: repeat-y">
                    <ui:insert name="left"></ui:insert>
                </td>
                <td id="content" style="background-image: url('images/h_grad.jpg'); background-repeat: repeat ">
                    <ui:insert name="content"><h:panelGroup layout="block" styleClass="content" rendered="#{menuBacking.paginainicio}">
                        <ui:include src="PaginaInicio.xhtml"/>
                    </h:panelGroup></ui:insert>
                </td>
            </tr>
            <tr>
                <td>
                           
                </td>
            </tr>
            <tr><table width="100%" border="0" cellpadding="0" cellspacing="0">

                <tr>
                <td>
                    
       <!-- <p:dock>
	<p:menuitem value="Ingresar Ticket" icon="images/text-document.png" url="/faces/NewTicket.xhtml" rendered="#{mBLogin.tipUser== 1 || mBLogin.tipUser== 2 || mBLogin.tipUser== 3 }"/>
	<p:menuitem value="Tickets solicitados" icon="images/default-icon.png" url="/faces/listTickets.xhtml" rendered="#{mBLogin.tipUser== 1 || mBLogin.tipUser== 2 || mBLogin.tipUser== 3 }"/>
	<p:menuitem value="Tickets Atendidos" icon="images/rich-text-doc.png" url="/faces/ClosedTicket.xhtml" rendered="#{mBLogin.tipUser== 1 || mBLogin.tipUser== 2 || mBLogin.tipUser== 3 }"/>
        </p:dock>
       -->
                </td>
                </tr>    
                    <tr bgcolor="#C6D9EC">

                <tr>
                <td>
        
        <p:dock>
	<p:menuitem value="Ingresar Ticket" icon="images/text-document.png" url="/faces/NewTicket.xhtml" rendered="#{mBLogin.tipUser== 1 || mBLogin.tipUser== 2 || mBLogin.tipUser== 3  || mBLogin.tipUser== 4 || mBLogin.tipUser== 5}"/>
	<p:menuitem value="Tickets Solicitados" icon="images/default-icon.png" url="/faces/listTickets.xhtml" rendered="#{mBLogin.tipUser== 1 || mBLogin.tipUser== 2 || mBLogin.tipUser== 3  || mBLogin.tipUser== 4 || mBLogin.tipUser== 5}"/>
	<p:menuitem value="Tickets Atendidos" icon="images/rich-text-doc.png" url="/faces/ClosedTicket.xhtml" rendered="#{mBLogin.tipUser== 1 || mBLogin.tipUser== 2 || mBLogin.tipUser== 3  || mBLogin.tipUser== 4 || mBLogin.tipUser== 5}"/>
        <p:menuitem value="Consulta por estado y técnico" icon="images/my-briefcase.png" url="/faces/EstadoTecnicoPage.xhtml" rendered="#{mBLogin.tipUser== 1 || mBLogin.tipUser== 2 || mBLogin.tipUser== 3  || mBLogin.tipUser== 4 || mBLogin.tipUser== 5}"/>
        <p:menuitem value="Tecnicos disponibles" icon="images/my-briefcase.png" url="/faces/validaDisponib.xhtml" rendered="#{mBLogin.tipUser== 1 || mBLogin.tipUser== 2 || mBLogin.tipUser== 3  || mBLogin.tipUser== 4 || mBLogin.tipUser== 5}"/>
        <p:menuitem value="Usuarios por rol" icon="images/my-briefcase.png" url="/faces/userByRol.xhtml" rendered="#{mBLogin.tipUser== 1 || mBLogin.tipUser== 2 || mBLogin.tipUser== 3  || mBLogin.tipUser== 4 || mBLogin.tipUser== 5}"/>
        </p:dock>
        
                </td>
                </tr>    
                    <tr bgcolor="#C6D9EC">

                        <td align="left"><p:graphicImage value="images/bot1.gif"/></td>
                        <td align="center">© Derechos reservados 2012</td><td align="right"><p:graphicImage value="images/bot2.gif"/></td>
                        </tr>
                    </tr>
                    </table> </tr>
        </table>
    </h:body>

</html>
